home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d27 / chgjobl.arc / README.TXT < prev   
Text File  |  1991-12-04  |  2KB  |  54 lines

  1. CHANGE JOB LOG OUTPUT QUEUE
  2. by Bob Cozzi
  3.  
  4.  
  5. It has long been a desire of mine to be able to change the
  6. joblog output queue of a job, to an output queue other than
  7. the default queue or the one that is specified on the
  8. object description for the printer file QPJOBLOG.
  9.  
  10. The command CHGJOBLOG will accomplish this task.
  11.  
  12. Basically, the command works like this.  First, you specify
  13. the CHGJOBLOG either as the last command in your CL
  14. programs, or as the last statement of a Routing Program.
  15.  
  16. If you place it into your Routing Program, you don't need
  17. to add it to any other CL programs.
  18.  
  19. Then, specify the OUTQ name of the output queue that you
  20. want your job log to go to.  The output MUST exist.
  21.  
  22. The way CHGJOBLOG works is as follows:
  23.  
  24. The command CHGJOBLOG sends the output queue name to its
  25. command processing program (CHGJOBLOG).
  26.  
  27. The command processing program (CHGJOBLOG) retrieves the
  28. current job's job name, number and user.  It then builds a
  29. second command's command parameters.  The second command is
  30. called CHGJOBLOG2.
  31.  
  32. The command processing program (CHGJOBLOG) then submits the
  33. command string 'CHGJOBLOG2 JOB(xxx.xxx.xxx) OUTQ(XXX.XXX)'
  34. as a batch job to QCTL.
  35.  
  36. CHGJOBLOG2 will attempt to change the spool file attributes
  37. of QPJOBLOG for the specified job.  If it cannot change the
  38. attributes, it will "go to sleep" for about 10 seconds, and
  39. then try again.  It will retry up to 3 times, then it gives
  40. up.
  41.  
  42. If you use another controlling subsystem, (something other
  43. than QCTL,) then you will have to modify CHGJOBLOG2.
  44.  
  45. Good Luck!
  46.  
  47.  
  48. Bob Cozzi  [ID0004]
  49.  
  50. (c)  Copyright 1987 by Q38
  51. This program, its source and its object may NOT be
  52. reproduced or distributed in any form, without express
  53. written permission from Q38.
  54.